﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Microsoft.Live.ServerControls.Web
{
    public partial class HeightWidth : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void ButtonResize_Click(object sender, EventArgs e)
        {
            LblPrev.Text = "Previous Values. width: " + Map1.Width.Value + "px Height: " + Map1.Height.Value + "px."; 
            Map1.Width = new Unit(txtNewWidth.Text);
            Map1.Height = new Unit(txtNewHeight.Text);
        }
    }
}